<div class="panel panel-default panel-intro">
    



    <div class="panel-body">
        <div id="myTabContent" class="tab-content">
            <div class="tab-pane fade active in" id="one">
                <div class="widget-body no-padding">
<table id="table" class="table table-striped table-bordered table-hover table-nowrap" data-operate-edit="1" data-operate-del="1" width="100%">
  <thead>
    <tr>
      <th style="text-align: center; vertical-align: middle; " ><div class="th-inner ">会员</div></th>
      <th style="text-align: center; vertical-align: middle; "><div class="th-inner ">散客姓名</div></th>
      <th style="text-align: center; vertical-align: middle; "><div class="th-inner ">房间</div></th>
      <th style="text-align: center; vertical-align: middle; "><div class="th-inner ">顾问</div></th>
      <th style="text-align: center; vertical-align: middle; "><div class="th-inner ">美容师</div></th>
      <th style="text-align: center; vertical-align: middle; "><div class="th-inner ">项目</div></th>
      <th style="text-align: center; vertical-align: middle; "><div class="th-inner ">预约时间</div></th>
      <th style="text-align: center; vertical-align: middle; "><div class="th-inner ">操作</div></th>

    </tr>
  </thead>
  <tbody data-listidx="0">
    {volist name="list" id="vo"}
    <tr data-index="{$key}">
      <td style="text-align: center; vertical-align: middle; ">{$vo.user.username}</td>
      <td style="text-align: center; vertical-align: middle; ">{$vo.user_name}</td>
      <td style="text-align: center; vertical-align: middle; ">{$vo.house.name}</td>
      <td style="text-align: center; vertical-align: middle; ">{$vo.adviser}</td>
      <td style="text-align: center; vertical-align: middle; ">{$vo.technician_text}</td>
      <td style="text-align: center; vertical-align: middle; ">{$vo.project}</td>
      <td style="text-align: center; vertical-align: middle; ">{$vo.appointment_time}</td>
      <td style="text-align: center; vertical-align: middle; ">
      	<span class="btn btn-success selection" data-appointment_id="{$vo.id}" data-user_id="{$vo.user.id}" data-shop_id="{$vo.shop.id}" data-house_id="{$vo.house.id}">选择</span>
      </td>
    </tr>
    {/volist}
  </tbody>
</table>
                </div>
            </div>
            <script src="https://cdn.bootcss.com/jquery/3.4.1/jquery.min.js"></script>
<script>
	//注意：parent 是 JS 自带的全局对象，可用于操作父页面
var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
$('.selection').on('click', function(){
	
    parent.$('#c-appointment_id').val($(this).data('appointment_id'));
    parent.$('#c-user_id').val($(this).data('user_id'));
    parent.$('#c-shop_id').val($(this).data('shop_id'));
    parent.$('#c-house_id').val($(this).data('house_id'));
    // parent.layer.tips('Look here', '#parentIframe', {time: 5000});
    parent.layer.close(index);

});
</script>
        </div>
    </div>
</div>
